from django.urls import path, re_path

from . import views

urlpatterns = [
    path('api/v1.0/users', views.RegisterView.as_view()),  # 用户注册
    path('api/v1.0/session', views.LoginView.as_view()),  # 登录
    re_path(r'^user$', views.UserInfoView.as_view()),  # 个人中心
    re_path(r'^user/avatar$', views.AvatarView.as_view()),  # 上传个人头像
    re_path(r'^user/name$', views.ModifyNameView.as_view()),  # 用户名修改
    re_path(r'^user/auth', views.UserAuthView.as_view()),  # 用户实名认证
]
